package com.app.mvvmlearnmodule.entity

import android.util.Log
import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import androidx.databinding.library.baseAdapters.BR


class Entity01 : BaseObservable() {

    val TAG = Entity01::class.java.simpleName

    @get:Bindable
    var btnName01 : String? = "zhouwd"
        set(btnName01) {
            Log.d(TAG, "btnName01 -> $btnName01")
            field = btnName01
            notifyPropertyChanged(BR.btnName01)
        }
    @get:Bindable
    var btnName02 : String? = "ijiawe"
        set(btnName02) {
            Log.d(TAG, "btnName02 -> $btnName02")
            field = btnName02
            notifyPropertyChanged(BR.btnName02)
        }

    var btnName03 : String? = "更新"
}